﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace UnityModule
{
    public class PreloadRes : SingletonBehaviour<PreloadRes>
    {
        public List<GameObject> m_PreloadPrefabs = new List<GameObject>();
        public List<Sprite> m_PreloadSprites = new List<Sprite>();
        public List<Texture> FlowMapList = new List<Texture>();

        public Texture GetFlowMap(int index)
        {
            Texture t = null;
            int theTextureId = index - 1;
            if (theTextureId >= 0 && theTextureId < FlowMapList.Count)
            {
                t = FlowMapList[theTextureId];
            }
            return t;
        }
    }
}

